<?php 
	class SystemControl extends CommonControl{
	public function password(){
		if(IS_POST){
		if(!isset($_POST['passwd1'])||!isset($_POST['passwd1']))$this->error('请填入数据');
		if($_POST['passwd1']!=$_POST['passwd1'])$this->error('密码不一致');
			$data=M('admin')->where('aid='.$_SESSION['aid'])->update(array('passwd'=>md5($_POST['passwd1'])));
			if($data)$this->error('修改成功');
				
			}
			$this->display();
		}
		public function web_set(){
			$this->display();
		}
	}




 ?>